
package com.x52im.rbchat.logic.search.model;

import com.x52im.rbchat.logic.search.content.SearchableContent;

import java.util.List;

/**
 * 搜索完成时的结果数据包装对象。
 *
 * @author Jack Jiang
 * @since 8.2
 */
public class SearchCompleteData {

    /** 可搜索内容封装对象 */
    private SearchableContent searchableContent;
    /** 搜索内容结果数据保合 */
    private List<Object> searchedResults;

    public SearchCompleteData(SearchableContent searchableContent, List<Object> searchedResults) {
        this.searchableContent = searchableContent;
        this.searchedResults = searchedResults;
    }

    public SearchableContent getSearchableContent() {
        return searchableContent;
    }

    public void setSearchableContent(SearchableContent searchableContent) {
        this.searchableContent = searchableContent;
    }

    public List<Object> getSearchedResults() {
        return searchedResults;
    }

    public void setSearchedResults(List<Object> searchedResults) {
        this.searchedResults = searchedResults;
    }

    public int getSearchedResultsSize(){
        if(this.searchedResults != null)
            return this.searchedResults.size();
        return 0;
    }
}
